package cn.codelab.springcloudalibaba.step06.exception;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @author Seven
 * @description
 * @Gitee https://gitee.com/it-codelab
 * @Copyright 公众号：Seven的代码实验室
 */
public class ExceptionUtil {
    public static String fallback(Long id,Throwable e){
        return "===被异常降级啦===";
    }

    public static String handleException(Long id, BlockException e){
        return "===被限流啦===";
    }
}
